package com.ibiaoke.customer.service;

import com.alibaba.fastjson.JSONObject;
import com.ibiaoke.common.base.Page;
import com.ibiaoke.customer.entity.Customer;
import com.ibiaoke.customer.entity.ThirdPartLogin;
import com.ibiaoke.customer.entity.vo.CustomerVO;

import java.util.List;

public interface ThirdPartLoginService {
    /**
     * 根据UID查找绑定关系
     * @param uId
     * @return
     */
    ThirdPartLogin getByUid(String uId);
    ThirdPartLogin getByXid(String xId);
    /**
     * 綁定关系
     * @param thirdPartLogin
     */
    void bind(ThirdPartLogin thirdPartLogin,String accessToken);

    int updateHeadPicAndNickName(String openId,String accessToken);

    List<ThirdPartLogin> queryByUserIds(List<Integer> userIds);

    ThirdPartLogin getThiedPartLogin(String mobile);

    List<ThirdPartLogin> listThiedPartLogin(List<Integer> customerIds);

    int editUserMobile(Customer customer, CustomerVO customerVO);

    ThirdPartLogin getInfo(Integer customerId);
}
